#include "exynos_4412.h"

void Delay(unsigned int Time){
	while(Time--);
}


int main()
{
	//控制LED2
	GPX2.CON = GPX2.CON & (~(0xF << 28)) | (0x1 << 28);
	//控制LED3
	GPX1.CON = GPX1.CON | 1;
	//控制LED4
	GPF3.CON = GPF3.CON | (1 << 16);
	//控制LED5
	GPF3.CON = GPF3.CON | (1 << 20);

	while(1)
	{
		/*点亮LED2*/
		GPX2.DAT = GPX2.DAT | (1 << 7);
		/*延时*/
		Delay(1000000);
		/*熄灭LED2*/
		GPX2.DAT = GPX2.DAT & (~(1 << 7));
		/*延时*/
		Delay(1000000);
		
		/*点亮LED3*/
		GPX1.DAT = GPX1.DAT | 1;
		/*延时*/
		Delay(1000000);
		/*熄灭LED3*/
		GPX1.DAT = GPX1.DAT & (~1);
		/*延时*/
		Delay(1000000);
		
		/*点亮LED4*/
		GPF3.DAT = GPF3.DAT | (1 << 4);
		/*延时*/
		Delay(1000000);
		/*熄灭LED4*/
		GPF3.DAT = GPF3.DAT & (~(1 << 4));
		/*延时*/
		Delay(1000000);
		
		/*点亮LED5*/
		GPF3.DAT = GPF3.DAT | (1 << 5);
		/*延时*/
		Delay(1000000);
		/*熄灭LED5*/
		GPF3.DAT = GPF3.DAT & (~(1 << 5));
		/*延时*/
		Delay(1000000);
	}
	return 0;
}
